package com.fengyunhe.manager.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 功能：
 * 作者： yangyan
 * 时间： 2014/9/9 .
 */
public class AdminUserVo {
    private Integer userId;
    private Integer userType;
    private String email;
    private String password;
    private String nickname;
    private String openId;
    private String realName;
    private String phone;
    private String gender;
    private Integer status;
    private String lastLoginIp;
    private Integer superman;
    private Date createdAt;
    private Integer createdByUserId;
    private String createdByRealName;


    public AdminUserVo() {
    }


    public AdminUserVo(Integer userId, Integer userType, String email, String password, String nickname, String openId, String realName, String phone, String gender, Integer status, String lastLoginIp, Integer superman, Date createdAt, Integer createdByUserId, String createdByRealName) {
        this.userId = userId;
        this.userType = userType;
        this.email = email;
        this.password = password;
        this.nickname = nickname;
        this.openId = openId;
        this.realName = realName;
        this.phone = phone;
        this.gender = gender;
        this.status = status;
        this.lastLoginIp = lastLoginIp;
        this.superman = superman;
        this.createdAt = createdAt;
        this.createdByUserId = createdByUserId;
        this.createdByRealName = createdByRealName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Integer getSuperman() {
        return superman;
    }

    public void setSuperman(Integer superman) {
        this.superman = superman;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getCreatedByUserId() {
        return createdByUserId;
    }

    public void setCreatedByUserId(Integer createdByUserId) {
        this.createdByUserId = createdByUserId;
    }

    public String getCreatedByRealName() {
        return createdByRealName;
    }

    public void setCreatedByRealName(String createdByRealName) {
        this.createdByRealName = createdByRealName;
    }
}
